package com.jcp.service;

import java.util.List;

import com.jcp.entity.Departments;
import com.jcp.entity.DepartmentsAndUserName;


/**
 * 部门管理dao
 * @author 朱徐烽
 *
 */
public interface DepartmentsService {

	/**
	 * 根据工号查找部长id
	 * @param deptId 部门id
	 * @return int 部长id
	 */
	int selDeptManIdByUserId(int userId);
	
	/**
	 * 通过工号查询部门id
	 * @param userId 工号
	 * @return int 部门id
	 */
	int selDeptIdByUserId(int userId);
	
	
List<DepartmentsAndUserName> Departmentssel();
	
	boolean Departmentsdel(int deptid);
	
	boolean Departmentsadd(Departments dept);
	
	boolean Departmentsup(Departments dept);
	
	List<Departments> Departmentslocalsel(int deptid);

}
